package com.neo.web;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;


@Controller
public class HelloController {

	@RequestMapping("/")
    public String hello(Model model) {
        
        return "user/login";
    }
    
    @PostMapping("/login")
    public String login(String username,String password) {
    	
    	return "redirect:/list";
    }
}
